package com.bp.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bp.common.annotation.Excel;
import com.bp.common.core.domain.BaseEntity;

/**
 * 文件存储对象 sys_file
 *
 * @author shaominjie
 * @date 2021-01-13
 */
public class SysFileDomain extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long fileId;

    /** 目录Id */
    @Excel(name = "目录Id")
    private Long indexId;
    @Excel
    private String userName;

    /** 目录名称原名 */
    @Excel(name = "文件名称原名")
    private String fileName;

    /** 目录名称系统 */
    @Excel(name = "文件名称系统")
    private String fileNameEx;

    /** 文件描述 */
    @Excel(name = "文件描述")
    private String fileDesc;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private Integer status;

    /** 删除标志（0代表存在 2代表删除） */
    private Integer delFlag;

    /** 默认类型（0不可删除 1可删除） */
    @Excel(name = "默认类型", readConverterExp = "0=不可删除,1=可删除")
    private Integer systemFlag;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public Long getFileId(){
        return fileId;
    }
    public void setIndexId(Long indexId) {
        this.indexId = indexId;
    }

    public Long getIndexId(){
        return indexId;
    }
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName(){
        return fileName;
    }
    public void setFileNameEx(String fileNameEx) {
        this.fileNameEx = fileNameEx;
    }

    public String getFileNameEx(){
        return fileNameEx;
    }
    public void setFileDesc(String fileDesc) {
        this.fileDesc = fileDesc;
    }

    public String getFileDesc(){
        return fileDesc;
    }
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFilePath(){
        return filePath;
    }
    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Long getFileSize(){
        return fileSize;
    }
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getFileType(){
        return fileType;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus(){
        return status;
    }
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag(){
        return delFlag;
    }
    public void setSystemFlag(Integer systemFlag) {
        this.systemFlag = systemFlag;
    }

    public Integer getSystemFlag(){
        return systemFlag;
    }
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum(){
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("fileId", getFileId())
                .append("indexId", getIndexId())
                .append("createBy", getCreateBy())
                .append("fileName", getFileName())
                .append("fileNameEx", getFileNameEx())
                .append("fileDesc", getFileDesc())
                .append("filePath", getFilePath())
                .append("fileSize", getFileSize())
                .append("fileType", getFileType())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("systemFlag", getSystemFlag())
                .append("orderNum", getOrderNum())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}